<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:template name="marc21LanguageExpansion">
		<xsl:param name="lang" select="." />
		<xsl:choose>
			<xsl:when test="$lang='aar'">Afar</xsl:when>
			<xsl:when test="$lang='abk'">Abkhaz</xsl:when>
			<xsl:when test="$lang='ace'">Achinese</xsl:when>
			<xsl:when test="$lang='ach'">Acoli</xsl:when>
			<xsl:when test="$lang='ada'">Adangme</xsl:when>
			<xsl:when test="$lang='ady'">Adygei</xsl:when>
			<xsl:when test="$lang='afa'">Afroasiatic (Other)</xsl:when>
			<xsl:when test="$lang='afh'">Afrihili (Artificial language)</xsl:when>
			<xsl:when test="$lang='afr'">Afrikaans</xsl:when>
			<xsl:when test="$lang='ain'">Ainu</xsl:when>
			<xsl:when test="$lang='ajm'">Aljamía</xsl:when>
			<xsl:when test="$lang='aka'">Akan</xsl:when>
			<xsl:when test="$lang='akk'">Akkadian</xsl:when>
			<xsl:when test="$lang='alb'">Albanian</xsl:when>
			<xsl:when test="$lang='ale'">Aleut</xsl:when>
			<xsl:when test="$lang='alg'">Algonquian (Other)</xsl:when>
			<xsl:when test="$lang='alt'">Altai</xsl:when>
			<xsl:when test="$lang='amh'">Amharic</xsl:when>
			<xsl:when test="$lang='ang'">English, Old (ca. 450-1100)</xsl:when>
			<xsl:when test="$lang='anp'">Angika</xsl:when>
			<xsl:when test="$lang='apa'">Apache languages</xsl:when>
			<xsl:when test="$lang='ara'">Arabic</xsl:when>
			<xsl:when test="$lang='arc'">Aramaic</xsl:when>
			<xsl:when test="$lang='arg'">Aragonese Spanish</xsl:when>
			<xsl:when test="$lang='arm'">Armenian</xsl:when>
			<xsl:when test="$lang='arn'">Mapuche</xsl:when>
			<xsl:when test="$lang='arp'">Arapaho</xsl:when>
			<xsl:when test="$lang='art'">Artificial (Other)</xsl:when>
			<xsl:when test="$lang='arw'">Arawak</xsl:when>
			<xsl:when test="$lang='asm'">Assamese</xsl:when>
			<xsl:when test="$lang='ast'">Bable</xsl:when>
			<xsl:when test="$lang='ath'">Athapascan (Other)</xsl:when>
			<xsl:when test="$lang='aus'">Australian languages</xsl:when>
			<xsl:when test="$lang='ava'">Avaric</xsl:when>
			<xsl:when test="$lang='ave'">Avestan</xsl:when>
			<xsl:when test="$lang='awa'">Awadhi</xsl:when>
			<xsl:when test="$lang='aym'">Aymara</xsl:when>
			<xsl:when test="$lang='aze'">Azerbaijani</xsl:when>
			<xsl:when test="$lang='bad'">Banda languages</xsl:when>
			<xsl:when test="$lang='bai'">Bamileke languages</xsl:when>
			<xsl:when test="$lang='bak'">Bashkir</xsl:when>
			<xsl:when test="$lang='bal'">Baluchi</xsl:when>
			<xsl:when test="$lang='bam'">Bambara</xsl:when>
			<xsl:when test="$lang='ban'">Balinese</xsl:when>
			<xsl:when test="$lang='baq'">Basque</xsl:when>
			<xsl:when test="$lang='bas'">Basa</xsl:when>
			<xsl:when test="$lang='bat'">Baltic (Other)</xsl:when>
			<xsl:when test="$lang='bej'">Beja</xsl:when>
			<xsl:when test="$lang='bel'">Belarusian</xsl:when>
			<xsl:when test="$lang='bem'">Bemba</xsl:when>
			<xsl:when test="$lang='ben'">Bengali</xsl:when>
			<xsl:when test="$lang='ber'">Berber (Other)</xsl:when>
			<xsl:when test="$lang='bho'">Bhojpuri</xsl:when>
			<xsl:when test="$lang='bih'">Bihari</xsl:when>
			<xsl:when test="$lang='bik'">Bikol</xsl:when>
			<xsl:when test="$lang='bin'">Edo</xsl:when>
			<xsl:when test="$lang='bis'">Bislama</xsl:when>
			<xsl:when test="$lang='bla'">Siksika</xsl:when>
			<xsl:when test="$lang='bnt'">Bantu (Other)</xsl:when>
			<xsl:when test="$lang='bos'">Bosnian</xsl:when>
			<xsl:when test="$lang='bra'">Braj</xsl:when>
			<xsl:when test="$lang='bre'">Breton</xsl:when>
			<xsl:when test="$lang='btk'">Batak</xsl:when>
			<xsl:when test="$lang='bua'">Buriat</xsl:when>
			<xsl:when test="$lang='bug'">Bugis</xsl:when>
			<xsl:when test="$lang='bul'">Bulgarian</xsl:when>
			<xsl:when test="$lang='bur'">Burmese</xsl:when>
			<xsl:when test="$lang='byn'">Bilin</xsl:when>
			<xsl:when test="$lang='cad'">Caddo</xsl:when>
			<xsl:when test="$lang='cai'">Central American Indian (Other)</xsl:when>
			<xsl:when test="$lang='cam'">Khmer</xsl:when>
			<xsl:when test="$lang='car'">Carib</xsl:when>
			<xsl:when test="$lang='cat'">Catalan</xsl:when>
			<xsl:when test="$lang='cau'">Caucasian (Other)</xsl:when>
			<xsl:when test="$lang='ceb'">Cebuano</xsl:when>
			<xsl:when test="$lang='cel'">Celtic (Other)</xsl:when>
			<xsl:when test="$lang='cha'">Chamorro</xsl:when>
			<xsl:when test="$lang='chb'">Chibcha</xsl:when>
			<xsl:when test="$lang='che'">Chechen</xsl:when>
			<xsl:when test="$lang='chg'">Chagatai</xsl:when>
			<xsl:when test="$lang='chi'">Chinese</xsl:when>
			<xsl:when test="$lang='chk'">Chuukese</xsl:when>
			<xsl:when test="$lang='chm'">Mari</xsl:when>
			<xsl:when test="$lang='chn'">Chinook jargon</xsl:when>
			<xsl:when test="$lang='cho'">Choctaw</xsl:when>
			<xsl:when test="$lang='chp'">Chipewyan</xsl:when>
			<xsl:when test="$lang='chr'">Cherokee</xsl:when>
			<xsl:when test="$lang='chu'">Church Slavic</xsl:when>
			<xsl:when test="$lang='chv'">Chuvash</xsl:when>
			<xsl:when test="$lang='chy'">Cheyenne</xsl:when>
			<xsl:when test="$lang='cmc'">Chamic languages</xsl:when>
			<xsl:when test="$lang='cop'">Coptic</xsl:when>
			<xsl:when test="$lang='cor'">Cornish</xsl:when>
			<xsl:when test="$lang='cos'">Corsican</xsl:when>
			<xsl:when test="$lang='cpe'">Creoles and Pidgins, English-based (Other)</xsl:when>
			<xsl:when test="$lang='cpf'">Creoles and Pidgins, French-based (Other)</xsl:when>
			<xsl:when test="$lang='cpp'">Creoles and Pidgins, Portuguese-based (Other)</xsl:when>
			<xsl:when test="$lang='cre'">Cree</xsl:when>
			<xsl:when test="$lang='crh'">Crimean Tatar</xsl:when>
			<xsl:when test="$lang='crp'">Creoles and Pidgins (Other)</xsl:when>
			<xsl:when test="$lang='csb'">Kashubian</xsl:when>
			<xsl:when test="$lang='cus'">Cushitic (Other)</xsl:when>
			<xsl:when test="$lang='cze'">Czech</xsl:when>
			<xsl:when test="$lang='dak'">Dakota</xsl:when>
			<xsl:when test="$lang='dan'">Danish</xsl:when>
			<xsl:when test="$lang='dar'">Dargwa</xsl:when>
			<xsl:when test="$lang='day'">Dayak</xsl:when>
			<xsl:when test="$lang='del'">Delaware</xsl:when>
			<xsl:when test="$lang='den'">Slave</xsl:when>
			<xsl:when test="$lang='dgr'">Dogrib</xsl:when>
			<xsl:when test="$lang='din'">Dinka</xsl:when>
			<xsl:when test="$lang='div'">Divehi</xsl:when>
			<xsl:when test="$lang='doi'">Dogri</xsl:when>
			<xsl:when test="$lang='dra'">Dravidian (Other)</xsl:when>
			<xsl:when test="$lang='dsb'">Lower Sorbian</xsl:when>
			<xsl:when test="$lang='dua'">Duala</xsl:when>
			<xsl:when test="$lang='dum'">Dutch, Middle (ca. 1050-1350)</xsl:when>
			<xsl:when test="$lang='dut'">Dutch</xsl:when>
			<xsl:when test="$lang='dyu'">Dyula</xsl:when>
			<xsl:when test="$lang='dzo'">Dzongkha</xsl:when>
			<xsl:when test="$lang='efi'">Efik</xsl:when>
			<xsl:when test="$lang='egy'">Egyptian</xsl:when>
			<xsl:when test="$lang='eka'">Ekajuk</xsl:when>
			<xsl:when test="$lang='elx'">Elamite</xsl:when>
			<xsl:when test="$lang='eng'">English</xsl:when>
			<xsl:when test="$lang='enm'">English, Middle (1100-1500)</xsl:when>
			<xsl:when test="$lang='epo'">Esperanto</xsl:when>
			<xsl:when test="$lang='esk'">Eskimo languages</xsl:when>
			<xsl:when test="$lang='esp'">Esperanto</xsl:when>
			<xsl:when test="$lang='est'">Estonian</xsl:when>
			<xsl:when test="$lang='eth'">Ethiopic</xsl:when>
			<xsl:when test="$lang='ewe'">Ewe</xsl:when>
			<xsl:when test="$lang='ewo'">Ewondo</xsl:when>
			<xsl:when test="$lang='fan'">Fang</xsl:when>
			<xsl:when test="$lang='fao'">Faroese</xsl:when>
			<xsl:when test="$lang='far'">Faroese</xsl:when>
			<xsl:when test="$lang='fat'">Fanti</xsl:when>
			<xsl:when test="$lang='fij'">Fijian</xsl:when>
			<xsl:when test="$lang='fil'">Filipino</xsl:when>
			<xsl:when test="$lang='fin'">Finnish</xsl:when>
			<xsl:when test="$lang='fiu'">Finno-Ugrian (Other)</xsl:when>
			<xsl:when test="$lang='fon'">Fon</xsl:when>
			<xsl:when test="$lang='fre'">French</xsl:when>
			<xsl:when test="$lang='fri'">Frisian</xsl:when>
			<xsl:when test="$lang='frm'">French, Middle (ca. 1300-1600)</xsl:when>
			<xsl:when test="$lang='fro'">French, Old (ca. 842-1300)</xsl:when>
			<xsl:when test="$lang='frr'">North Frisian</xsl:when>
			<xsl:when test="$lang='frs'">East Frisian</xsl:when>
			<xsl:when test="$lang='fry'">Frisian</xsl:when>
			<xsl:when test="$lang='ful'">Fula</xsl:when>
			<xsl:when test="$lang='fur'">Friulian</xsl:when>
			<xsl:when test="$lang='gaa'">Gã</xsl:when>
			<xsl:when test="$lang='gae'">Scottish Gaelix</xsl:when>
			<xsl:when test="$lang='gag'">Galician</xsl:when>
			<xsl:when test="$lang='gal'">Oromo</xsl:when>
			<xsl:when test="$lang='gay'">Gayo</xsl:when>
			<xsl:when test="$lang='gba'">Gbaya</xsl:when>
			<xsl:when test="$lang='gem'">Germanic (Other)</xsl:when>
			<xsl:when test="$lang='geo'">Georgian</xsl:when>
			<xsl:when test="$lang='ger'">German</xsl:when>
			<xsl:when test="$lang='gez'">Ethiopic</xsl:when>
			<xsl:when test="$lang='gil'">Gilbertese</xsl:when>
			<xsl:when test="$lang='gla'">Scottish Gaelic</xsl:when>
			<xsl:when test="$lang='gle'">Irish</xsl:when>
			<xsl:when test="$lang='glg'">Galician</xsl:when>
			<xsl:when test="$lang='glv'">Manx</xsl:when>
			<xsl:when test="$lang='gmh'">German, Middle High (ca. 1050-1500)</xsl:when>
			<xsl:when test="$lang='goh'">German, Old High (ca. 750-1050)</xsl:when>
			<xsl:when test="$lang='gon'">Gondi</xsl:when>
			<xsl:when test="$lang='gor'">Gorontalo</xsl:when>
			<xsl:when test="$lang='got'">Gothic</xsl:when>
			<xsl:when test="$lang='grb'">Grebo</xsl:when>
			<xsl:when test="$lang='grc'">Greek, Ancient (to 1453)</xsl:when>
			<xsl:when test="$lang='gre'">Greek, Modern (1453- )</xsl:when>
			<xsl:when test="$lang='grn'">Guarani</xsl:when>
			<xsl:when test="$lang='gsw'">Swiss German</xsl:when>
			<xsl:when test="$lang='gua'">Guarani</xsl:when>
			<xsl:when test="$lang='guj'">Gujarati</xsl:when>
			<xsl:when test="$lang='gwi'">Gwich\'in</xsl:when>
			<xsl:when test="$lang='hai'">Haida</xsl:when>
			<xsl:when test="$lang='hat'">Haitian French Creole</xsl:when>
			<xsl:when test="$lang='hau'">Hausa</xsl:when>
			<xsl:when test="$lang='haw'">Hawaiian</xsl:when>
			<xsl:when test="$lang='heb'">Hebrew</xsl:when>
			<xsl:when test="$lang='her'">Herero</xsl:when>
			<xsl:when test="$lang='hil'">Hiligaynon</xsl:when>
			<xsl:when test="$lang='him'">Himachali</xsl:when>
			<xsl:when test="$lang='hin'">Hindi</xsl:when>
			<xsl:when test="$lang='hit'">Hittite</xsl:when>
			<xsl:when test="$lang='hmn'">Hmong</xsl:when>
			<xsl:when test="$lang='hmo'">Hiri Motu</xsl:when>
			<xsl:when test="$lang='hrv'">Croatian</xsl:when>
			<xsl:when test="$lang='hsb'">Upper Sorbian</xsl:when>
			<xsl:when test="$lang='hun'">Hungarian</xsl:when>
			<xsl:when test="$lang='hup'">Hupa</xsl:when>
			<xsl:when test="$lang='iba'">Iban</xsl:when>
			<xsl:when test="$lang='ibo'">Igbo</xsl:when>
			<xsl:when test="$lang='ice'">Icelandic</xsl:when>
			<xsl:when test="$lang='ido'">Ido</xsl:when>
			<xsl:when test="$lang='iii'">Sichuan Yi</xsl:when>
			<xsl:when test="$lang='ijo'">Ijo</xsl:when>
			<xsl:when test="$lang='iku'">Inuktitut</xsl:when>
			<xsl:when test="$lang='ile'">Interlingue</xsl:when>
			<xsl:when test="$lang='ilo'">Iloko</xsl:when>
			<xsl:when test="$lang='ina'">Interlingua (International Auxiliary Language Association)</xsl:when>
			<xsl:when test="$lang='inc'">Indic (Other)</xsl:when>
			<xsl:when test="$lang='ind'">Indonesian</xsl:when>
			<xsl:when test="$lang='ine'">Indo-European (Other)</xsl:when>
			<xsl:when test="$lang='inh'">Ingush</xsl:when>
			<xsl:when test="$lang='int'">Interlingua (International Auxiliary Language Association)</xsl:when>
			<xsl:when test="$lang='ipk'">Inupiaq</xsl:when>
			<xsl:when test="$lang='ira'">Iranian (Other)</xsl:when>
			<xsl:when test="$lang='iri'">Irish</xsl:when>
			<xsl:when test="$lang='iro'">Iroquoian (Other)</xsl:when>
			<xsl:when test="$lang='ita'">Italian</xsl:when>
			<xsl:when test="$lang='jav'">Javanese</xsl:when>
			<xsl:when test="$lang='jbo'">Lojban (Artificial language)</xsl:when>
			<xsl:when test="$lang='jpn'">Japanese</xsl:when>
			<xsl:when test="$lang='jpr'">Judeo-Persian</xsl:when>
			<xsl:when test="$lang='jrb'">Judeo-Arabic</xsl:when>
			<xsl:when test="$lang='kaa'">Kara-Kalpak</xsl:when>
			<xsl:when test="$lang='kab'">Kabyle</xsl:when>
			<xsl:when test="$lang='kac'">Kachin</xsl:when>
			<xsl:when test="$lang='kal'">Kalâtdlisut</xsl:when>
			<xsl:when test="$lang='kam'">Kamba</xsl:when>
			<xsl:when test="$lang='kan'">Kannada</xsl:when>
			<xsl:when test="$lang='kar'">Karen languages</xsl:when>
			<xsl:when test="$lang='kas'">Kashmiri</xsl:when>
			<xsl:when test="$lang='kau'">Kanuri</xsl:when>
			<xsl:when test="$lang='kaw'">Kawi</xsl:when>
			<xsl:when test="$lang='kaz'">Kazakh</xsl:when>
			<xsl:when test="$lang='kbd'">Kabardian</xsl:when>
			<xsl:when test="$lang='kha'">Khasi</xsl:when>
			<xsl:when test="$lang='khi'">Khoisan (Other)</xsl:when>
			<xsl:when test="$lang='khm'">Khmer</xsl:when>
			<xsl:when test="$lang='kho'">Khotanese</xsl:when>
			<xsl:when test="$lang='kik'">Kikuyu</xsl:when>
			<xsl:when test="$lang='kin'">Kinyarwanda</xsl:when>
			<xsl:when test="$lang='kir'">Kyrgyz</xsl:when>
			<xsl:when test="$lang='kmb'">Kimbundu</xsl:when>
			<xsl:when test="$lang='kok'">Konkani</xsl:when>
			<xsl:when test="$lang='kom'">Komi</xsl:when>
			<xsl:when test="$lang='kon'">Kongo</xsl:when>
			<xsl:when test="$lang='kor'">Korean</xsl:when>
			<xsl:when test="$lang='kos'">Kusaie</xsl:when>
			<xsl:when test="$lang='kpe'">Kpelle</xsl:when>
			<xsl:when test="$lang='krc'">Karachay-Balkar</xsl:when>
			<xsl:when test="$lang='krl'">Karelian</xsl:when>
			<xsl:when test="$lang='kro'">Kru (Other)</xsl:when>
			<xsl:when test="$lang='kru'">Kurukh</xsl:when>
			<xsl:when test="$lang='kua'">Kuanyama</xsl:when>
			<xsl:when test="$lang='kum'">Kumyk</xsl:when>
			<xsl:when test="$lang='kur'">Kurdish</xsl:when>
			<xsl:when test="$lang='kus'">Kusaie</xsl:when>
			<xsl:when test="$lang='kut'">Kootenai</xsl:when>
			<xsl:when test="$lang='lad'">Ladino</xsl:when>
			<xsl:when test="$lang='lah'">Lahndā</xsl:when>
			<xsl:when test="$lang='lam'">Lamba (Zambia and Congo)</xsl:when>
			<xsl:when test="$lang='lan'">Occitan (post 1500)</xsl:when>
			<xsl:when test="$lang='lao'">Lao</xsl:when>
			<xsl:when test="$lang='lap'">Sami</xsl:when>
			<xsl:when test="$lang='lat'">Latin</xsl:when>
			<xsl:when test="$lang='lav'">Latvian</xsl:when>
			<xsl:when test="$lang='lez'">Lezgian</xsl:when>
			<xsl:when test="$lang='lim'">Limburgish</xsl:when>
			<xsl:when test="$lang='lin'">Lingala</xsl:when>
			<xsl:when test="$lang='lit'">Lithuanian</xsl:when>
			<xsl:when test="$lang='lol'">Mongo-Nkundu</xsl:when>
			<xsl:when test="$lang='loz'">Lozi</xsl:when>
			<xsl:when test="$lang='ltz'">Luxembourgish</xsl:when>
			<xsl:when test="$lang='lua'">Luba-Lulua</xsl:when>
			<xsl:when test="$lang='lub'">Luba-Katanga</xsl:when>
			<xsl:when test="$lang='lug'">Ganda</xsl:when>
			<xsl:when test="$lang='lui'">Luiseño</xsl:when>
			<xsl:when test="$lang='lun'">Lunda</xsl:when>
			<xsl:when test="$lang='luo'">Luo (Kenya and Tanzania)</xsl:when>
			<xsl:when test="$lang='lus'">Lushai</xsl:when>
			<xsl:when test="$lang='mac'">Macedonian</xsl:when>
			<xsl:when test="$lang='mad'">Madurese</xsl:when>
			<xsl:when test="$lang='mag'">Magahi</xsl:when>
			<xsl:when test="$lang='mah'">Marshallese</xsl:when>
			<xsl:when test="$lang='mai'">Maithili</xsl:when>
			<xsl:when test="$lang='mak'">Makasar</xsl:when>
			<xsl:when test="$lang='mal'">Malayalam</xsl:when>
			<xsl:when test="$lang='man'">Mandingo</xsl:when>
			<xsl:when test="$lang='mao'">Maori</xsl:when>
			<xsl:when test="$lang='map'">Austronesian (Other)</xsl:when>
			<xsl:when test="$lang='mar'">Marathi</xsl:when>
			<xsl:when test="$lang='mas'">Masai</xsl:when>
			<xsl:when test="$lang='max'">Manx</xsl:when>
			<xsl:when test="$lang='may'">Malay</xsl:when>
			<xsl:when test="$lang='mdf'">Moksha</xsl:when>
			<xsl:when test="$lang='mdr'">Mandar</xsl:when>
			<xsl:when test="$lang='men'">Mende</xsl:when>
			<xsl:when test="$lang='mga'">Irish, Middle (ca. 1100-1550)</xsl:when>
			<xsl:when test="$lang='mic'">Micmac</xsl:when>
			<xsl:when test="$lang='min'">Minangkabau</xsl:when>
			<xsl:when test="$lang='mis'">Miscellaneous languages</xsl:when>
			<xsl:when test="$lang='mkh'">Mon-Khmer (Other)</xsl:when>
			<xsl:when test="$lang='mla'">Malagasy</xsl:when>
			<xsl:when test="$lang='mlg'">Malagasy</xsl:when>
			<xsl:when test="$lang='mlt'">Maltese</xsl:when>
			<xsl:when test="$lang='mnc'">Manchu</xsl:when>
			<xsl:when test="$lang='mni'">Manipuri</xsl:when>
			<xsl:when test="$lang='mno'">Manobo languages</xsl:when>
			<xsl:when test="$lang='moh'">Mohawk</xsl:when>
			<xsl:when test="$lang='mol'">Moldavian</xsl:when>
			<xsl:when test="$lang='mon'">Mongolian</xsl:when>
			<xsl:when test="$lang='mos'">Mooré</xsl:when>
			<xsl:when test="$lang='mul'">Multiple languages</xsl:when>
			<xsl:when test="$lang='mun'">Munda (Other)</xsl:when>
			<xsl:when test="$lang='mus'">Creek</xsl:when>
			<xsl:when test="$lang='mwl'">Mirandese</xsl:when>
			<xsl:when test="$lang='mwr'">Marwari</xsl:when>
			<xsl:when test="$lang='myn'">Mayan languages</xsl:when>
			<xsl:when test="$lang='myv'">Erzya</xsl:when>
			<xsl:when test="$lang='nah'">Nahuatl</xsl:when>
			<xsl:when test="$lang='nai'">North American Indian (Other)</xsl:when>
			<xsl:when test="$lang='nap'">Neapolitan Italian</xsl:when>
			<xsl:when test="$lang='nau'">Nauru</xsl:when>
			<xsl:when test="$lang='nav'">Navajo</xsl:when>
			<xsl:when test="$lang='nbl'">Ndebele (South Africa)</xsl:when>
			<xsl:when test="$lang='nde'">Ndebele (Zimbabwe)</xsl:when>
			<xsl:when test="$lang='ndo'">Ndonga</xsl:when>
			<xsl:when test="$lang='nds'">Low German</xsl:when>
			<xsl:when test="$lang='nep'">Nepali</xsl:when>
			<xsl:when test="$lang='new'">Newari</xsl:when>
			<xsl:when test="$lang='nia'">Nias</xsl:when>
			<xsl:when test="$lang='nic'">Niger-Kordofanian (Other)</xsl:when>
			<xsl:when test="$lang='niu'">Niuean</xsl:when>
			<xsl:when test="$lang='nno'">Norwegian (Nynorsk)</xsl:when>
			<xsl:when test="$lang='nob'">Norwegian (Bokmål)</xsl:when>
			<xsl:when test="$lang='nog'">Nogai</xsl:when>
			<xsl:when test="$lang='non'">Old Norse</xsl:when>
			<xsl:when test="$lang='nor'">Norwegian</xsl:when>
			<xsl:when test="$lang='nqo'">N\'Ko</xsl:when>
			<xsl:when test="$lang='nso'">Northern Sotho</xsl:when>
			<xsl:when test="$lang='nub'">Nubian languages</xsl:when>
			<xsl:when test="$lang='nwc'">Newari, Old</xsl:when>
			<xsl:when test="$lang='nya'">Nyanja</xsl:when>
			<xsl:when test="$lang='nym'">Nyamwezi</xsl:when>
			<xsl:when test="$lang='nyn'">Nyankole</xsl:when>
			<xsl:when test="$lang='nyo'">Nyoro</xsl:when>
			<xsl:when test="$lang='nzi'">Nzima</xsl:when>
			<xsl:when test="$lang='oci'">Occitan (post 1500)</xsl:when>
			<xsl:when test="$lang='oji'">Ojibwa</xsl:when>
			<xsl:when test="$lang='ori'">Oriya</xsl:when>
			<xsl:when test="$lang='orm'">Oromo</xsl:when>
			<xsl:when test="$lang='osa'">Osage</xsl:when>
			<xsl:when test="$lang='oss'">Ossetic</xsl:when>
			<xsl:when test="$lang='ota'">Turkish, Ottoman</xsl:when>
			<xsl:when test="$lang='oto'">Otomian languages</xsl:when>
			<xsl:when test="$lang='paa'">Papuan (Other)</xsl:when>
			<xsl:when test="$lang='pag'">Pangasinan</xsl:when>
			<xsl:when test="$lang='pal'">Pahlavi</xsl:when>
			<xsl:when test="$lang='pam'">Pampanga</xsl:when>
			<xsl:when test="$lang='pan'">Panjabi</xsl:when>
			<xsl:when test="$lang='pap'">Papiamento</xsl:when>
			<xsl:when test="$lang='pau'">Palauan</xsl:when>
			<xsl:when test="$lang='peo'">Old Persian (ca. 600-400 B.C.)</xsl:when>
			<xsl:when test="$lang='per'">Persian</xsl:when>
			<xsl:when test="$lang='phi'">Philippine (Other)</xsl:when>
			<xsl:when test="$lang='phn'">Phoenician</xsl:when>
			<xsl:when test="$lang='pli'">Pali</xsl:when>
			<xsl:when test="$lang='pol'">Polish</xsl:when>
			<xsl:when test="$lang='pon'">Ponape</xsl:when>
			<xsl:when test="$lang='por'">Portuguese</xsl:when>
			<xsl:when test="$lang='pra'">Prakrit languages</xsl:when>
			<xsl:when test="$lang='pro'">Provençal (to 1500)</xsl:when>
			<xsl:when test="$lang='pus'">Pushto</xsl:when>
			<xsl:when test="$lang='que'">Quechua</xsl:when>
			<xsl:when test="$lang='raj'">Rajasthani</xsl:when>
			<xsl:when test="$lang='rap'">Rapanui</xsl:when>
			<xsl:when test="$lang='rar'">Rarotongan</xsl:when>
			<xsl:when test="$lang='roa'">Romance (Other)</xsl:when>
			<xsl:when test="$lang='roh'">Raeto-Romance</xsl:when>
			<xsl:when test="$lang='rom'">Romani</xsl:when>
			<xsl:when test="$lang='rum'">Romanian</xsl:when>
			<xsl:when test="$lang='run'">Rundi</xsl:when>
			<xsl:when test="$lang='rup'">Aromanian</xsl:when>
			<xsl:when test="$lang='rus'">Russian</xsl:when>
			<xsl:when test="$lang='sad'">Sandawe</xsl:when>
			<xsl:when test="$lang='sag'">Sango (Ubangi Creole)</xsl:when>
			<xsl:when test="$lang='sah'">Yakut</xsl:when>
			<xsl:when test="$lang='sai'">South American Indian (Other)</xsl:when>
			<xsl:when test="$lang='sal'">Salishan languages</xsl:when>
			<xsl:when test="$lang='sam'">Samaritan Aramaic</xsl:when>
			<xsl:when test="$lang='san'">Sanskrit</xsl:when>
			<xsl:when test="$lang='sao'">Samoan</xsl:when>
			<xsl:when test="$lang='sas'">Sasak</xsl:when>
			<xsl:when test="$lang='sat'">Santali</xsl:when>
			<xsl:when test="$lang='scc'">Serbian</xsl:when>
			<xsl:when test="$lang='scn'">Sicilian Italian</xsl:when>
			<xsl:when test="$lang='sco'">Scots</xsl:when>
			<xsl:when test="$lang='scr'">Croatian</xsl:when>
			<xsl:when test="$lang='sel'">Selkup</xsl:when>
			<xsl:when test="$lang='sem'">Semitic (Other)</xsl:when>
			<xsl:when test="$lang='sga'">Irish, Old (to 1100)</xsl:when>
			<xsl:when test="$lang='sgn'">Sign languages</xsl:when>
			<xsl:when test="$lang='shn'">Shan</xsl:when>
			<xsl:when test="$lang='sho'">Shona</xsl:when>
			<xsl:when test="$lang='sid'">Sidamo</xsl:when>
			<xsl:when test="$lang='sin'">Sinhalese</xsl:when>
			<xsl:when test="$lang='sio'">Siouan (Other)</xsl:when>
			<xsl:when test="$lang='sit'">Sino-Tibetan (Other)</xsl:when>
			<xsl:when test="$lang='sla'">Slavic (Other)</xsl:when>
			<xsl:when test="$lang='slo'">Slovak</xsl:when>
			<xsl:when test="$lang='slv'">Slovenian</xsl:when>
			<xsl:when test="$lang='sma'">Southern Sami</xsl:when>
			<xsl:when test="$lang='sme'">Northern Sami</xsl:when>
			<xsl:when test="$lang='smi'">Sami</xsl:when>
			<xsl:when test="$lang='smj'">Lule Sami</xsl:when>
			<xsl:when test="$lang='smn'">Inari Sami</xsl:when>
			<xsl:when test="$lang='smo'">Samoan</xsl:when>
			<xsl:when test="$lang='sms'">Skolt Sami</xsl:when>
			<xsl:when test="$lang='sna'">Shona</xsl:when>
			<xsl:when test="$lang='snd'">Sindhi</xsl:when>
			<xsl:when test="$lang='snh'">Sinhalese</xsl:when>
			<xsl:when test="$lang='snk'">Soninke</xsl:when>
			<xsl:when test="$lang='sog'">Sogdian</xsl:when>
			<xsl:when test="$lang='som'">Somali</xsl:when>
			<xsl:when test="$lang='son'">Songhai</xsl:when>
			<xsl:when test="$lang='sot'">Sotho</xsl:when>
			<xsl:when test="$lang='spa'">Spanish</xsl:when>
			<xsl:when test="$lang='srd'">Sardinian</xsl:when>
			<xsl:when test="$lang='srn'">Sranan</xsl:when>
			<xsl:when test="$lang='srp'">Serbian</xsl:when>
			<xsl:when test="$lang='srr'">Serer</xsl:when>
			<xsl:when test="$lang='ssa'">Nilo-Saharan (Other)</xsl:when>
			<xsl:when test="$lang='sso'">Sotho</xsl:when>
			<xsl:when test="$lang='ssw'">Swazi</xsl:when>
			<xsl:when test="$lang='suk'">Sukuma</xsl:when>
			<xsl:when test="$lang='sun'">Sundanese</xsl:when>
			<xsl:when test="$lang='sus'">Susu</xsl:when>
			<xsl:when test="$lang='sux'">Sumerian</xsl:when>
			<xsl:when test="$lang='swa'">Swahili</xsl:when>
			<xsl:when test="$lang='swe'">Swedish</xsl:when>
			<xsl:when test="$lang='swz'">Swazi</xsl:when>
			<xsl:when test="$lang='syc'">Syriac</xsl:when>
			<xsl:when test="$lang='syr'">Syriac, Modern</xsl:when>
			<xsl:when test="$lang='tag'">Tagalog</xsl:when>
			<xsl:when test="$lang='tah'">Tahitian</xsl:when>
			<xsl:when test="$lang='tai'">Tai (Other)</xsl:when>
			<xsl:when test="$lang='taj'">Tajik</xsl:when>
			<xsl:when test="$lang='tam'">Tamil</xsl:when>
			<xsl:when test="$lang='tar'">Tatar</xsl:when>
			<xsl:when test="$lang='tat'">Tatar</xsl:when>
			<xsl:when test="$lang='tel'">Telugu</xsl:when>
			<xsl:when test="$lang='tem'">Temne</xsl:when>
			<xsl:when test="$lang='ter'">Terena</xsl:when>
			<xsl:when test="$lang='tet'">Tetum</xsl:when>
			<xsl:when test="$lang='tgk'">Tajik</xsl:when>
			<xsl:when test="$lang='tgl'">Tagalog</xsl:when>
			<xsl:when test="$lang='tha'">Thai</xsl:when>
			<xsl:when test="$lang='tib'">Tibetan</xsl:when>
			<xsl:when test="$lang='tig'">Tigré</xsl:when>
			<xsl:when test="$lang='tir'">Tigrinya</xsl:when>
			<xsl:when test="$lang='tiv'">Tiv</xsl:when>
			<xsl:when test="$lang='tkl'">Tokelauan</xsl:when>
			<xsl:when test="$lang='tlh'">Klingon (Artificial language)</xsl:when>
			<xsl:when test="$lang='tli'">Tlingit</xsl:when>
			<xsl:when test="$lang='tmh'">Tamashek</xsl:when>
			<xsl:when test="$lang='tog'">Tonga (Nyasa)</xsl:when>
			<xsl:when test="$lang='ton'">Tongan</xsl:when>
			<xsl:when test="$lang='tpi'">Tok Pisin</xsl:when>
			<xsl:when test="$lang='tru'">Truk</xsl:when>
			<xsl:when test="$lang='tsi'">Tsimshian</xsl:when>
			<xsl:when test="$lang='tsn'">Tswana</xsl:when>
			<xsl:when test="$lang='tso'">Tsonga</xsl:when>
			<xsl:when test="$lang='tsw'">Tswana</xsl:when>
			<xsl:when test="$lang='tuk'">Turkmen</xsl:when>
			<xsl:when test="$lang='tum'">Tumbuka</xsl:when>
			<xsl:when test="$lang='tup'">Tupi languages</xsl:when>
			<xsl:when test="$lang='tur'">Turkish</xsl:when>
			<xsl:when test="$lang='tut'">Altaic (Other)</xsl:when>
			<xsl:when test="$lang='tvl'">Tuvaluan</xsl:when>
			<xsl:when test="$lang='twi'">Twi</xsl:when>
			<xsl:when test="$lang='tyv'">Tuvinian</xsl:when>
			<xsl:when test="$lang='udm'">Udmurt</xsl:when>
			<xsl:when test="$lang='uga'">Ugaritic</xsl:when>
			<xsl:when test="$lang='uig'">Uighur</xsl:when>
			<xsl:when test="$lang='ukr'">Ukrainian</xsl:when>
			<xsl:when test="$lang='umb'">Umbundu</xsl:when>
			<xsl:when test="$lang='und'">Undetermined</xsl:when>
			<xsl:when test="$lang='urd'">Urdu</xsl:when>
			<xsl:when test="$lang='uzb'">Uzbek</xsl:when>
			<xsl:when test="$lang='vai'">Vai</xsl:when>
			<xsl:when test="$lang='ven'">Venda</xsl:when>
			<xsl:when test="$lang='vie'">Vietnamese</xsl:when>
			<xsl:when test="$lang='vol'">Volapük</xsl:when>
			<xsl:when test="$lang='vot'">Votic</xsl:when>
			<xsl:when test="$lang='wak'">Wakashan languages</xsl:when>
			<xsl:when test="$lang='wal'">Wolayta</xsl:when>
			<xsl:when test="$lang='war'">Waray</xsl:when>
			<xsl:when test="$lang='was'">Washo</xsl:when>
			<xsl:when test="$lang='wel'">Welsh</xsl:when>
			<xsl:when test="$lang='wen'">Sorbian (Other)</xsl:when>
			<xsl:when test="$lang='wln'">Walloon</xsl:when>
			<xsl:when test="$lang='wol'">Wolof</xsl:when>
			<xsl:when test="$lang='xal'">Oirat</xsl:when>
			<xsl:when test="$lang='xho'">Xhosa</xsl:when>
			<xsl:when test="$lang='yao'">Yao (Africa)</xsl:when>
			<xsl:when test="$lang='yap'">Yapese</xsl:when>
			<xsl:when test="$lang='yid'">Yiddish</xsl:when>
			<xsl:when test="$lang='yor'">Yoruba</xsl:when>
			<xsl:when test="$lang='ypk'">Yupik languages</xsl:when>
			<xsl:when test="$lang='zap'">Zapotec</xsl:when>
			<xsl:when test="$lang='zbl'">Blissymbolics</xsl:when>
			<xsl:when test="$lang='zen'">Zenaga</xsl:when>
			<xsl:when test="$lang='zha'">Zhuang</xsl:when>
			<xsl:when test="$lang='znd'">Zande languages</xsl:when>
			<xsl:when test="$lang='zul'">Zulu</xsl:when>
			<xsl:when test="$lang='zun'">Zuni</xsl:when>
			<xsl:when test="$lang='zxx'">No linguistic content</xsl:when>
    	</xsl:choose>
    </xsl:template>
</xsl:stylesheet>